/**
 * Created by Administrator on 2017/4/13.
 */
function readCookie(name)
{
    var cookieValue = "";
    var search = name + "=";
    if(document.cookie.length > 0)
    {
        offset = document.cookie.indexOf(search);
        if (offset != -1)
        {
            offset += search.length;
            end = document.cookie.indexOf(";", offset);
            if (end == -1) end = document.cookie.length;
            cookieValue = unescape(document.cookie.substring(offset, end))
        }
    }
    return cookieValue;
}
/*
window.setInterval("isLogin()",500);
var usrIsLogin=doGetCookie('username_fouNder');
if(!usrIsLogin){
    alert("未登录");
    console.log(usrIsLogin);
}else if(usrIsLogin){
    alert("用户已经登录登录");
}
setInterval(function () {
    doGetCookie('username_fouNder');
},500);*/
